import App from './App'

import api from './api/apis/index.js';
Vue.prototype.$api = api

// 引入工具类
import * as Tools from '@/utils/index'
Vue.prototype.$Tools = Tools

import store from './store/index.js';
Vue.prototype.$store = store
// main.js
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

import {
	upload
} from "./api/utils/request"
Vue.prototype.$upload = upload

import config from './api/config/index.js';
Vue.prototype.$config = config

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif